<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    protected $table = 'users';
    public static function addOne($data){
        return self::insert($data);
    }
    public static function getOne($where){
        return self::where($where)->get();
    }
    public static function login($where){
        return self::where($where)->first();
    }
    public static function upDo($where,$data){
        return self::where($where)->update($data);
    }
}
